package cn.momoshenchi.mq;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;



@Component

public class TopicReceiverB{
    @RabbitListener(queues = "student.b")
    public void process(String msg) {
        System.out.println("Topic ReceiverB: " + msg);
    }
}
